<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,com.guolibbs.vo.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/wlbbs.css">
</head>
<body>
	<div class="head"><span>物流交流区[第88888贴有奖,大家踊跃发帖]</span></div>
	<div class="nav">
		<a href="${pageContext.request.contextPath}/PostSerlvet">发帖</a>
		<a href="${pageContext.request.contextPath}/AllServlet">返回</a>
	</div>
	<div class="content">
		<div class="table">
			<table>
				<tr><td>发帖人</td><td>标题</td><td>发贴日期</td></tr>
			<% 
				List<Topic> topics = (List<Topic>)this.getServletContext().getAttribute("topics"); 
				if(topics!=null){
					for(Topic topic:topics){
			%>
						<tr>
							<td><%=topic.getPoster().getUsername() %></td>
							<td><a href="${pageContext.request.contextPath }/Wltopic?tname=<%=topic.getTopicName()%>"><%=topic.getTopicName() %></a></td>
							<td><%=topic.getPostTime() %></td>
						</tr>
			<%
					}
				}
			%>
			</table>
		</div>
	</div>
	<div class="foot">
		@copyright/2012-08/by ShanghaiGuoLi/<span>v1.20</span>
	</div>
</body>
</html>

